﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace _0912276_ChatClient
{
    public class Utils
    {
        public static int GenerateIdFromTime()
        {
            int result = 0;
            int month = DateTime.Now.Month;
            int day = DateTime.Now.Day;
            int hour = DateTime.Now.Hour;
            int second = DateTime.Now.Second;
            int minute = DateTime.Now.Minute;
            string temp = day.ToString("00") + hour.ToString("00") + second.ToString("00")
               + minute.ToString("00") + second.ToString("00");
            result = int.Parse(temp);
            return result;
        }
    }
}